package aufgabe_02;

public class Singleton {

	private static boolean singletonExists = false;
	
	public Singleton() throws SingletonException
	{
		if( !singletonExists ) 
		{
			singletonExists = true;
			 new Singleton();
			 
		}
		else{
			throw new SingletonException();
		}
	}
	
}
